class BaseModel {
    constructor(msg,data){
        this.msg = msg
        this.data = data
    }
}
class SuccessModel extends BaseModel {
    constructor(msg,data){
        super(msg,data)
        this.code = 200
    }
}
class ErrorModel extends BaseModel {
    constructor(msg,data){
        super(msg,data)
        this.code = -1
    }
}
module.exports = {
    SuccessModel,
    ErrorModel
}